package com.ipartek.desarrollo.acciones;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ipartek.desarrollo.bean.Matriculas;
import com.ipartek.desarrollo.dao.AccessMatriculasDAO;
import com.ipartek.desarrollo.interfaces.IMatriculasDAO;
import com.ipartek.formacion.ddbb.DAOFactory;
public class MostrarMatriculas extends Accion {
	
	@Override
	public String ejecutar(HttpServletRequest request,
			HttpServletResponse response) {
		
		List<Matriculas> matriculas = matriculasDAO.ListarMatriculas();
		request.setAttribute("matriculas", matriculas);
		return "mostrarMatriculas.jsp";
	}
}
